#include <QtGui/QApplication>
#include "mainwindow.h"

#include "finger.h"
#include <QtGui>
#include <math.h>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    qsrand(QTime(0,0,0).secsTo(QTime::currentTime()));

    QGraphicsScene scene;
    scene.setItemIndexMethod(QGraphicsScene::NoIndex);
    Finger *finger = new Finger;
    scene.addItem(finger);

    QGraphicsView view(&scene);
    view.setRenderHint(QPainter::Antialiasing);
    view.setCacheMode(QGraphicsView::CacheBackground);
    view.setDragMode(QGraphicsView::ScrollHandDrag);
    view.resize(900, 650);
    view.show();
    /*MainWindow w;
    w.show();*/
    return a.exec();
}
